<?php
$string = "php,reg.ular,expres.sions";

//$arr = explode(',',$string);
//print_r($arr);

$keywords = preg_split(
"/[,\.]+/",
 $string);

print_r( $keywords );
